import { Matrix4 } from "./Matrix4";
import { Matrix3 } from "./Matrix3";
import { Vector2 } from "./Vector2";
import { Vector3 } from "./Vector3";
import { Box3 } from "./Box3";
import { Quaternion } from "./Quaternion";
function calculateTransform(from,to){
    let fm = new Matrix3();
    let tm = new Matrix3();
    fm.set(from[0][0], from[1][0], from[2][0],
        from[0][1], from[1][1], from[2][1],
        1, 1, 1
    );
    tm.set(to[0][0], to[1][0], to[2][0],
        to[0][1], to[1][1], to[2][1],
        1, 1, 1
    )
    let fmT = fm.clone().transpose();
    let tmT = tm.clone().transpose();
    let transform = fmT.invert().multiply(tmT).transpose();
    return transform;
}
export {Matrix3,Matrix4,Vector2,Vector3,calculateTransform,Box3,Quaternion}
